HTML5 Digital Classroom by Jeremy Osborn & AGI Creative Team

HTML5 Digital Classroom by Jeremy Osborn & AGI Creative Team

Author:Jeremy Osborn & AGI Creative Team
Language: eng
Format: epub
Publisher: Wiley
Published: 2011-06-14T16:00:00+00:00


JavaScript frameworks

Imagine the following scenario: A designer is starting a new project and her client is interested in adding an interactive photo gallery to the site. The designer also needs to create a form that requires JavaScript validation. Since the designer is new to JavaScript, she finds code she can use for the photo gallery and the form validation, and adds it to her page. The designer later gets another job similar to the first, and she decides to reuse the code from her first project, so she saves the JavaScript code into an external file.

The designer now has a reusable library of code she can add to future projects, but there are some potential problems with this approach:

• The designer needs to organize, maintain, and update her library.

• The code the designer found could be poorly written.

• Poorly written JavaScript can slow down the performance of a website and/or cause security issues. Unless the designer is an expert at optimizing code, she may be unknowingly distributing bad code.

JavaScript frameworks are a better solution. There are several professionally written libraries available for use by designers. These libraries are large collections of functions built and tested by other designers and developers to form a common library. These collections of functions are available for immediate use, so if a designer needs to add an accordion menu (a menu that collapses and expands based on user events), he or she might readily find the code they need.

You will now use jQuery, one of the most popular and accessible JavaScript frameworks for designers. jQuery is useful for designers because it uses CSS syntax to search and access the page, thereby decreasing the amount of scripting language you need to learn.



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.